package com.baizhi;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.afterturn.easypoi.excel.annotation.ExcelCollection;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Teacher implements Serializable {
    @Excel(name = "老师编号",needMerge = true)
    private String id;
    @Excel(name = "老师姓名",needMerge = true)
    private String name;
    @ExcelCollection(name = "学生信息")
    private List<Student> students;
}
